import { RequestServerClass } from '@/util/request';
// 静态数据请求 json
export class StaticDataRequestServer {
  public rSerivce: any;

  constructor(opt?: any, axiosFilterFn?: any) {
    this.rSerivce = new RequestServerClass(opt);
    if (axiosFilterFn) {
      axiosFilterFn.call(this, this.rSerivce.serverObj);
    }
  }

  public getStaticJsonByUrl(url: string) {
    return this.rSerivce.serverObj.get(url);
  }
}
